package com.jtny.nytb.dataparam.service;

import com.github.xiaoymin.knife4j.annotations.ApiOperationSupport;
import com.github.xiaoymin.knife4j.annotations.ApiSort;
import com.jtny.component.entity.PageData;
import com.jtny.nytb.config.coderule.dto.ConfigRuleParameterTypeDTO;
import com.jtny.nytb.config.coderule.dto.ConfigRuleSequenceNumberDTO;
import com.jtny.nytb.config.coderule.dto.ConfigRuleSequenceNumberPageDTO;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiImplicitParams;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.*;

import java.util.List;

@Api(value = "顺序号", tags = "顺序号接口")
@ApiSort(202303)
public interface ConfigRuleSequenceNumberService {
    // 添加顺序号数据。

    @ApiOperation("保存顺序号数据")
    ConfigRuleSequenceNumberDTO save(@RequestBody ConfigRuleSequenceNumberDTO configRuleSequenceNumberDTO);

    @ApiOperation("获取最新顺序号")
    ConfigRuleSequenceNumberDTO querylastNumber(@RequestParam("lastcode") String lastcode, @RequestParam("sequenceSign") String sequenceSign);

    @ApiOperation("分页获取顺序号数据")
    PageData<ConfigRuleSequenceNumberDTO> queryPage(@RequestBody ConfigRuleSequenceNumberPageDTO configRuleSequenceNumberPageDTO);
}

